package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.entity.SysUserWechat;

import java.util.List;

/**
 * 微信用户绑定Service接口
 *
 * @author shuyan
 * @date 2021-06-16
 */
public interface ISysUserWechatService extends IService<SysUserWechat> {

    /**
     * 查询列表
     */
    List<SysUserWechat> queryList(SysUserWechat sysUserWechat);

    /**
     * 根据用户名查询
     *
     * @param userName 用户名
     */
    public SysUserWechat getOneByUserName(String userName);

    /**
     * 根据openid查询
     *
     * @param openid openid
     */
    public SysUserWechat getOneByOpenid(String openid);

    List<SysUserWechat> listWechatUsersByPhone(String phone);

    List<SysUser> listSysUsersByOpenid(String openid);
}
